package com.atgm.mall.gmmailproduct.feign.fallback;

import com.atgm.common.to.SkuReductionTo;
import com.atgm.common.to.SpuBoundTo;
import com.atgm.common.utils.R;
import com.atgm.mall.gmmailproduct.feign.CouponFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Slf4j
@Component
public class CouponFallbackService implements CouponFeignService {

    @Override
    public R saveSpuBounds(SpuBoundTo spuBoundTo) {
        log.error("调用gm-mall-coupon服务出现错误");
        return R.ok().setData(null);
    }

    @Override
    public R saveSkuReduction(SkuReductionTo skuReductionTo) {
        log.error("调用gm-mall-coupon服务出现错误");
        return R.ok().setData(null);
    }

    @Override
    public R getGoodsSale(List<Long> goodsIds) {
        log.error("调用gm-mall-coupon服务出现错误");
        return R.ok().setData(null);
    }

    @Override
    public R getSaleGameIds(Map<String, Object> params) {
        log.error("调用gm-mall-coupon服务出现错误");
        return R.ok().setData(null);
    }
}
